package com.ruoyi.project.datum.series.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 描述：产品系列实体类
 *  时间：2020/5/17
 * 作者：WangHaiDong
 */
public class Series extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 产品系列ID
     */
    private Integer seriesId;

    /**
     * 产品系列名称
     */
    private String seriesName;

    /**
     * 产品系列描述
     */
    private String seriesDesc;

    public Series() {
    }

    public Series(Integer seriesId, String seriesName, String seriesDesc) {
        this.seriesId = seriesId;
        this.seriesName = seriesName;
        this.seriesDesc = seriesDesc;
    }

    @Override
    public String toString() {
        return "Series{" +
                "seriesId=" + seriesId +
                ", seriesName='" + seriesName + '\'' +
                ", seriesDesc='" + seriesDesc + '\'' +
                '}';
    }

    public Integer getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Integer seriesId) {
        this.seriesId = seriesId;
    }

    @NotBlank(message = "产品名称不能为空")
    @Size(min = 0, max = 50, message = "产品名称不能超过50个字符")
    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public String getSeriesDesc() {
        return seriesDesc;
    }

    public void setSeriesDesc(String seriesDesc) {
        this.seriesDesc = seriesDesc;
    }
}
